/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: 焦质晔
 * @Last Modified time: 2019-11-30 15:49:43
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 取消礼品兑换单查询
export const queryGiftHandlerServiceInfo = params => axios.get(`${SERVER.MEMBERS_CLUB}/clbGiftExchangeCancel/queryGiftExchangeCancel`, {
  params
});

// 取消礼品兑换单明细查询
export const queryGiftExchangeDetailCancel = params => axios.get(`${SERVER.MEMBERS_CLUB}/clbGiftExchangeCancel/queryGiftExchangeDetailCancel`, {
  params
});

// 原始兑换单查询
export const queryBeforeGiftExchange = params => axios.get(`${SERVER.MEMBERS_CLUB}/clbGiftExchangeCancel/queryBeforeGiftExchange`, {
  params
});

// 删除取消礼品兑换单
export const deleteGiftExchangeCancel = params => axios.get(`${SERVER.MEMBERS_CLUB}/clbGiftExchangeCancel/deleteGiftExchangeCancel`, {
  params
});

// 取消礼品兑换执行退库
export const retreatGiftStorage = params => axios.post(`${SERVER.MEMBERS_CLUB}/clbGiftExchangeCancel/retreatGiftStorage`, params);

// 保存取消礼品兑换单
export const saveGiftExchangeCancel = params => axios.post(`${SERVER.MEMBERS_CLUB}/clbGiftExchangeCancel/saveGiftExchangeCancel`, params);

// 保存取消礼品兑换单
export const saveGiftExchangeDetailCancel = params => axios.post(`${SERVER.MEMBERS_CLUB}/clbGiftExchangeCancel/saveGiftExchangeDetailCancel`, params);

// 查询原始礼品兑换单礼品明细
export const getGiftPage = params => axios.get(`${SERVER.MEMBERS_CLUB}/clbGiftExchangeCancel/queryBeforeGiftExchangeGift`, {
  params
});
